<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
    'id'=>'province-form',
    'enableAjaxValidation'=>false,
)); ?>

    <p class="help-block">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

	<?php echo $form->textFieldRow($model,'name_en',array('class'=>'span5','maxlength'=>100)); ?>
	<?php echo $form->textFieldRow($model,'name_th',array('class'=>'span5','maxlength'=>100)); ?>
	<?php echo $form->dropDownListRow($model, 'nationality_id', CHtml::listData(Nationality::model()->getAllActive(), 'id', 'country'), array('empty'=>'select Type')); ?>
	<?php if(!$model->isNewRecord) {
		echo $form->checkboxRow($model, 'active');
	} ?>
    <div class="form-actions">
        <?php $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType'=>'submit',
            'type'=>'primary',
            'label'=>$model->isNewRecord ? 'Create' : 'Save',
        )); ?>
    </div>

<?php $this->endWidget(); ?>
